package com.hl.vcd.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hl.vcd.entity.Video;
import com.hl.vcd.entity.vo.VideoSearch;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author 朱炫达
 */
public interface VideoService extends IService<Video> {
    public boolean addVideo(Video video, MultipartFile imageFile, MultipartFile videoFile);

    public List<Video> getTopVideoByLike(Integer number, Integer type);

    public List<Video> getTopVideoByPlay(Integer number);

    public Video getVideoById(String id);

    public void updateVideoById(Video video);

    public void collectionIncrement(String id);

    public void collectionDecrement(String id);

    public void likeIncrement(String id);

    public void likeDecrement(String id);

    public IPage<VideoSearch> searchVideo(Page<VideoSearch> page, String keyword, String type, String order);
}
